﻿@model IEnumerable<GameSchoolApplication.Models.Submission>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
        <th>
            assignmentID
        </th>
        <th>
            studentComment
        </th>
        <th>
            teacherFeedback
        </th>
        <th>
            dateOfSubmission
        </th>
        <th>
            grade
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.submissionID }) |
            @Html.ActionLink("Details", "Details", new { id=item.submissionID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.submissionID })
        </td>
        <td>
            @item.assignmentID
        </td>
        <td>
            @item.studentComment
        </td>
        <td>
            @item.teacherFeedback
        </td>
        <td>
            @String.Format("{0:g}", item.dateOfSubmission)
        </td>
        <td>
            @String.Format("{0:F}", item.grade)
        </td>
    </tr>
}

</table>

